package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 项目决策信息：接触程度
 *
 * @Author: hongxiao
 * @date: 2021-11-16 20:42
 */
@Getter
public enum DecisionInfoContactDegreeEnum {
    // 深度接触
    DEPTH_CONTACT("1", "enum.decisionInfoContactDegree.name.depthContact", "depthContact", "#722ED1"),
    // 多次接触
    MANY_TIMES_CONTACT("2", "enum.decisionInfoContactDegree.name.manyTimesContact", "manyTimesContact", "#FF3B30"),
    // 简单接触
    SIMPLE_CONTACT("3", "enum.decisionInfoContactDegree.name.simpleContact", "simpleContact", "#1677FF"),
    // 尚未接触支持
    NO_CONTACT("4", "enum.decisionInfoContactDegree.name.noContact", "noContact", "#52C41A"),
    ;

    private String code;
    private String name;
    private String attr;
    private String color;

    DecisionInfoContactDegreeEnum(String code, String name, String attr, String color) {
        this.code = code;
        this.name = name;
        this.attr = attr;
        this.color = color;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
